import 'package:flutter/material.dart';

void main() {
  runApp(ListItem());
}

class ListItem extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: new ListItemWidget(),
    );
  }
}

class ListItemWidget extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return new ListItemState();
  }
}

class ListItemState extends State<ListItemWidget> {
  @override
  Widget build(BuildContext context) {
    double width = MediaQuery.of(context).size.width;
    return SafeArea(
        child: Scaffold(
      body: Stack(
        fit: StackFit.loose,
        children: <Widget>[
          Padding(
              padding: EdgeInsets.only(top: 20),
              child: Container(
                width: width,
                child: Card(
                  margin: EdgeInsets.all(10),
                  elevation: 1,
                  child: Padding(
                    padding: EdgeInsets.all(40),
                    child: Text("data"),
                  ),
                ),
              )),
          Align(
              alignment: Alignment.topLeft,
              child: Padding(padding: EdgeInsets.only(left: 3,),child: Container(
                width: 50,
                height: 50,
                decoration:
                BoxDecoration(color: Colors.red, shape: BoxShape.circle),
                child: Icon(Icons.widgets),
              ),)),
        ],
      ),
    ));
  }
}
